package com.platform.job;

import com.platform.api.Job;
import com.platform.api.JobContext;
import com.platform.job.mapper.TestMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;


@Component
public class JobTest implements Job {

  @Resource
  private TestMapper testMapper;

  @Override
  public void run(JobContext context) {
    var entity = testMapper.findById(1);
    System.out.println(entity);
  }
}
